<%--
  Created by IntelliJ IDEA.
  User: 22657
  Date: 2020/7/20
  Time: 23:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>学生管理系统首页</title>
</head>
<body>
<%--//获取会话域数据.如果获取到就显示添加和查看功能,如果没有就显示登陆页面--%>
<% Object username = session.getAttribute("username");
    if (username == null) {
%>
<a href="/stu/login.jsp">请登录</a>
<% } else { %>
<a href="/stu/addStudent.jsp">添加学生<a/>
    <a href="/stu/listStudent">查看学生<a/>

            <%}%>

</body>
</html>
